﻿namespace Reviewer.Utilities
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// Invariant String Comparer
    /// </summary>
    public class InvariantStringComparer : IComparer<String>
    {
        /// <summary>
        /// Compares the specified first.
        /// </summary>
        /// <param name="x">The first.</param>
        /// <param name="y">The second.</param>
        /// <returns></returns>
        public int Compare(string x, string y)
        {
            return String.Compare(x, y, StringComparison.OrdinalIgnoreCase);
        }
    }

}
